package com.sxbbc.common.core.entity.jz;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * app图标信息表
 * </p>
 *
 * @author leehao
 * @since 2019-05-14
 */
@TableName("app_icon")
public class AppIcon extends Model<AppIcon> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * app 图标名称
     */
    private String name;

    /**
     * 图标图片
     */
    private String icon;

    /**
     * 1显示 0不显示
     */
    private Integer display;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 事件类型见枚举类EventEnums
     */
    private String event;

    /**
     * 地址可以是 产品编号就搜索单个产品 可以是分类字符串 是跳转事件的根据事件类型来填写内容
     */
    private String url;

    /**
     * 1app 2小程序 3微信 4pc
     */
    private Integer position;

    /**
     * 类型名称
     */
    @TableField(exist = false)
    private String typeName;

    /**
     * 产品类型
     */
    @TableField(exist = false)
    private Integer proType;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getDisplay() {
        return display;
    }

    public void setDisplay(Integer display) {
        this.display = display;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }
    public String getEvent() {
        return event;
    }

    public void setEvent(String event) {
        this.event = event;
    }
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Integer getPosition() {
        return position;
    }

    public void setPosition(Integer position) {
        this.position = position;
    }

    public Integer getProType() {
        return proType;
    }

    public void setProType(Integer proType) {
        this.proType = proType;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "AppIcon{" +
        "id=" + id +
        ", name=" + name +
        ", icon=" + icon +
        ", display=" + display +
        ", sort=" + sort +
        ", event=" + event +
        ", url=" + url +
        "}";
    }
}
